import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/components/home'
import Shoppingmall from '@/components/Shoppingmall/shoppingmall'
import Homepage from '@/components/Homepage/homepage'
import List from '@/components/The_list/list'
import Cinema from '@/components/cinema/cinnema'
import Movies from '@/components/movies/movies'
import HotMovicesList from'@/components/The_list/components/HotMovices/HotMovicesList.vue'
import MostExpectMovicesList from'@/components/The_list/components/MostExpectMovices/MostExpectMovicesList.vue'
import TopMovicesList from'@/components/The_list/components/TopMovices/TopMovicesList.vue'
import CommaditDetail from '@/components/Shoppingmall/ProductDetail/CommaditDetail'
import cinemadetail from '@//components/cinema/cinemadetail'
import movies_left from '@/components/movies/movies_left';
import movies_center from '@/components/movies/movies_center';
import movies_right from '@/components/movies/movies_right';
import AddMerchant from '@/components/Shoppingmall/AddMerchant'
import Login from '@/components/Header/Login'
import moviesdetail from '@/components/Homepage/detail'
import orderpay from '@/components/cinema/orderpay'
import onFireTimeOrder from  '@/components/movies/onFileTimeOrder'
Vue.use(Router)


export default new Router({
  routes: [
    {
      path: '/',
      name: 'Home',
      component: Home
    },
    {
      path:'/cinemadetail',
      name:cinemadetail,
      component:cinemadetail
    },
    {
      path: '/shoppingmall',
      name: 'Shoppingmall',
      component:Shoppingmall
    },
    {
      path: '/homepage',
      name: 'Homepage',
      component:Homepage
    },
    {
      path: '/list',
      name: 'List',
      component:List
    },
    {
      path: '/cinema',
      name: 'Cinema',
      component:Cinema
    },
    {
      path: '/movies',
      name: 'Movies',
      component:Movies
    },
    {
      path: '/HotMovices',
      name: 'HotMovicesList',
      component:HotMovicesList
    },
    {
      path: '/MostExpectMovicesList',
      name: 'MostExpectMovicesList',
      component:MostExpectMovicesList
    },
    {
      path: '/TopMovicesList',
      name: 'TopMovicesList',
      component:TopMovicesList
    },
    {
      path: '/shoppingmall/ProductDetail/:figureId/:figureName/:figurePrice',
      name: 'CommaditDetail',
      component:CommaditDetail
    },
    {
      path: '/movies_left',
      name: 'movies_left',
      component:movies_left
    },
    {
      path: '/movies_center',
      name: 'movies_center',
      component:movies_center
    },
    {
      path: '/movies_right',
      name: 'movies_right',
      component:movies_right
    },
    {
      path: '/AddMerchant',
      name: 'AddMerchant',
      component:AddMerchant
    },
    {
      path:'/login',
      name:'Login',
      component:Login
    },
    {
      path:'/moviesdetail',
      name:'moviesdetail',
      component:moviesdetail
    },
    {
      path:'/order/:filmId/:filmName',
      name:'order',
      component:orderpay
    },
    {
      path:'/onFireTimeOrder',
      name:'onFireTimeOrder',
      component:onFireTimeOrder
    }
  ]
})
